﻿using System;

namespace Grundy.CryptographicServices
{
    public class PassThroughProvider : CustomerCryptographicServicesProvider
    {

        public PassThroughProvider()
            : base(string.Empty)
        {
        }

        public override string Algorithm
        {
            get { return "None"; }
        }

        public override string Provider
        {
            get { return "PassThroughProvider"; }
        }

        protected override byte[] SignData(byte[] data)
        {
            return new byte[0];
        }

        protected override bool VerifyData(byte[] data, byte[] signature)
        {
            return true;
        }

        public override byte[] EncryptData(byte[] data)
        {
            return data;
        }

        public override byte[] DecryptData(byte[] data)
        {
            return data;
        }

        public override bool CanVerifyProvider(string providerString)
        {
            return true;
        }

        public override Guid CustomerId
        {
            get { return Guid.Empty; }
        }

        public override string CustomerName
        {
            get { return string.Empty; }
        }
    }
}